@echo on
%~d0
cd %~dp0

copy C:\Windows\System32\drivers\usbccgp.sys .\drivers\amd64\sz812_usb_controller.sys

copy C:\Windows\System32\drivers\usbser.sys .\drivers\amd64\sz812_usb_port.sys

Tools\Inf2Cat.exe /driver:drivers  /os:10_x64 /verbose

Tools\signtool.exe sign /fd sha256 /f drivers/sz812.pfx /p 1234 drivers/sz812_usb_port.cat

Tools\signtool.exe sign /fd sha256 /f drivers/sz812.pfx /p 1234 drivers/sz812_usb_controller.cat

Tools\signtool.exe sign /fd sha256 /f drivers/sz812.pfx /p 1234 drivers/sz812_netimm.cat

certutil -addstore root drivers/sz812.cer root

pnputil.exe -i -a drivers/sz812_usb_controller.inf

pnputil.exe -i -a drivers/sz812_netimm.inf

pnputil.exe -i -a drivers/sz812_usb_port.inf